package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * BOM管理对象 cp_bom
 * 
 * @author GGJ
 * @date 2024-05-20
 */
public class CpBom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** BOM编码 */
    private Long id;

    /** BOM名称 */
    @Excel(name = "BOM名称")
    private String name;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private Long productId;

    /** 产品名 */
    @Excel(name = "产品名")
    private String productName;

    /** 工艺编码 */
    @Excel(name = "工艺编码")
    private Long techId;

    /** 子件信息 */
    @Excel(name = "子件信息")
    private String details;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setTechId(Long techId) 
    {
        this.techId = techId;
    }

    public Long getTechId() 
    {
        return techId;
    }
    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("techId", getTechId())
            .append("details", getDetails())
            .append("remark", getRemark())
            .toString();
    }
}
